package pdd;


import pdd.exceptions.PddException;

import java.io.Serializable;

/**
 * Created by gtx on 2018/6/11.
 * 拼多多response 父类
 * @author gtx
 */
public class PddResponse implements Serializable {

    private static final long serialVersionUID = -5271702954191989771L;
    /**
     * 请求是否成功
     */
    private Boolean success;
    /**
     * 异常
     */
    private PddException exception;
    /**
     * 返回数据
     */
    private String data;

    public PddResponse() {
    }

    public PddResponse(Boolean success, PddException exception) {
        this.success = success;
        this.exception = exception;
    }

    public PddResponse(Boolean success,  String data) {
        this.success = success;
        this.data = data;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public PddException getException() {
        return exception;
    }

    public void setException(PddException exception) {
        this.exception = exception;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
